﻿using System;
using System.Collections.Generic;
using System.Windows;
using Tisbi.LawFirm.DAL.Models;

namespace Tisbi.LawFirm.BL.Services.Implementation.Mock
{
    public class MockDistrictServiceAgent : MockServiceAgentBase<District>
    {
        private District districtTatarstan;
        public MockDistrictServiceAgent()
        {
            // Mock District
            districtTatarstan = new District { Id = 1, Title = "Татарстан" };
        }

        public override void GetItem(Action<List<District>, Exception> completed)
        {
            try
            {
                completed(new List<District> {districtTatarstan}, null);
            }
            catch (Exception ex)
            {
                completed(null, ex);
            }
        }

        public override void AddItem(District item, Action<Exception> completed)
        {
            throw new NotImplementedException();
        }

        public override void RemoveItem(District item)
        {
            throw new NotImplementedException();
        }

        public override void Edit(District item, Action<Exception> completed)
        {
            MessageBox.Show("Edit not implemented");
        }
    }
}
